﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ex_4_3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text += "您选的水产是：";
            if (radioButton1.Checked)
                textBox1.Text += radioButton1.Text;
            else if (radioButton2.Checked)
                textBox1.Text += radioButton2.Text;
            else
                textBox1.Text += radioButton3.Text;
            textBox1.Text += "您选的佐料是：";
            if (checkBox1.Checked)
                textBox1.Text += checkBox1.Text + " ";
            if (checkBox2.Checked)
                textBox1.Text += checkBox2.Text + " ";
            if (checkBox3.Checked)
                textBox1.Text += checkBox3.Text + " ";

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Controls.Clear();

            this.InitializeComponent();
        }
    }
}
